package com.yenlien.traceyun.plant.dao;


import com.yenlien.traceyun.plant.entity.PlantNews;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;


public interface PlantNewDao extends BaseJpaDao<PlantNews> {


    @Query(value = "SELECT id FROM t_plant_news WHERE correlation_id = ?1 AND type = ?2 LIMIT 1", nativeQuery = true)
    String checkExistByCorrelationId(String correlationId, String type);




}
